<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04-第四题</title>
</head>
<body>
<script>
  function start(n) {
  for (let i = 1; i <= n; i++) {
    console.log(" ".repeat(n - i) + "* ".repeat(i));
  }
}
// 示例输出
start(5);
</script>
</body>
</html>